#! /bin/sh

# Copyright (C) 2009-2014 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

tests=omegaware/tests

test -d $tests || mkdir -p $tests

./pltotf $srcdir/$tests/Cherokee $tests/Cherokee || exit 1

TEXMFCNF=$srcdir/../kpathsea \
  ./tftopl $tests/Cherokee $tests/xCherokee || exit 1

diff $srcdir/$tests/Cherokee.pl $tests/xCherokee.pl || exit 1

TEXMFCNF=$srcdir/../kpathsea \
  OFMFONTS=./$tests \
  ./wovp2ovf -verbose $srcdir/$tests/OCherokee $tests/OCherokee $tests/OCherokee || exit 1

TEXMFCNF=$srcdir/../kpathsea \
  ./wofm2opl -verbose $tests/OCherokee $tests/OCherokee || exit 1

./wopl2ofm -verbose $tests/OCherokee $tests/xOCherokee || exit 1

TEXMFCNF=$srcdir/../kpathsea \
  ./wofm2opl -verbose $tests/xOCherokee $tests/xOCherokee || exit 1

diff $tests/OCherokee.opl $tests/xOCherokee.opl || exit 1

TEXMFCNF=$srcdir/../kpathsea \
  OFMFONTS=.:./$tests \
  ./wovf2ovp -verbose $tests/OCherokee $tests/OCherokee $tests/xOCherokee || exit 1

diff $srcdir/$tests/OCherokee.ovp $tests/xOCherokee.ovp || exit 1

